package jgl.vajra.management.part.mine.viewModel;

import java.util.Map;

import jgl.vajra.management.bean.BankCardBean;
import jgl.vajra.management.part.mine.contract.BankCardContract;
import jgl.vajra.management.part.mine.model.BankCardModel;
import jgl.vajra.management.widget.mvvm.factory.CreateModel;
import jgl.vajra.management.widget.retrofithelper.rxsubscriber.ProgressObserver;

@CreateModel(BankCardModel.class)
public class BankCardViewModel extends BankCardContract.ViewModel{
    @Override
    public void getBankCardData(Map<String, Object> map) {
        mModel.getBankCardData(map).subscribe(new ProgressObserver<BankCardBean>(true,this) {
            @Override
            public void _onNext(BankCardBean data) {
                mView.returnBankCardData(data);
            }
        });
    }
}
